import { Toast } from "antd-mobile";
import request from "@/api/request";

/**
 * 获取订单列表
 * @param {Object} params - 查询参数 (页码、状态等)
 * @returns {Promise} 返回数据
 */
export const getOrderList = async (data = {}) => {
  Toast.show({
    icon: "loading",
    maskClickable: false,
  });
  const ret = await request({
    url: "/member/orderList",
    method: "post",
    data,
  });
  Toast.clear();
  return ret;
};
